package com.dianneng.show.base;

import android.app.Application;

import com.blankj.utilcode.util.ActivityUtils;
import com.blankj.utilcode.util.Utils;

/**
 * Created by Administrator on 2018\9\20 0020.
 */

public class BaseApp extends Application {


    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);
    }

    /**
     * 退出应用程序
     */
    public void appExit() {
        try {
            ActivityUtils.finishAllActivities(true);
            System.exit(0);
            android.os.Process.killProcess(android.os.Process.myPid());

        } catch (Exception e) {
        }
    }
}
